package com.weikuang.fareast.adapter;

import com.weikuang.fareast.R;
import com.weikuang.fareast.bean.QueryBean;

import cn.dlc.commonlibrary.ui.adapter.BaseRecyclerAdapter;
import cn.dlc.commonlibrary.utils.TimeFormatsUtil;


/**
 * 录入的查询
 */
public class QueryAddAdapter extends BaseRecyclerAdapter<QueryBean.DataBean> {
    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_query;
    }

    public QueryAddAdapter() {

    }

    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        QueryBean.DataBean bean = getItem(position);

        holder.getText(R.id.office).setText(bean.office);
        holder.getText(R.id.name).setText(bean.title);
        holder.getText(R.id.inputnums).setText(bean.amount);
        holder.getText(R.id.bads).setText(bean.bad);
        holder.getText(R.id.checks).setText(bean.check);
        holder.getText(R.id.time).setText(TimeFormatsUtil.setTime3(bean.ctime));



    }
}
